import request from '../util/httpTool';
const basePath = 'iot/api/v1/v1/device/setting/';
export function list(req) {
    return new Promise((resolve, reject) => {
        const res = request({
            url: basePath + 'list',
            method: 'post',
            data: req
        });
        res.then((data) => {
            resolve(data);
        }).catch((e) => {
            reject(e);
        });
    });
}
export function send(req) {
    return new Promise((resolve, reject) => {
        const res = request({
            url: basePath + 'send',
            method: 'post',
            data: req
        });
        res.then((data) => {
            resolve(data);
        }).catch((e) => {
            reject(e);
        });
    });
}
